package com.ykq.controller;

import com.ykq.service.PermissionService;
import com.ykq.util.CommonResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: tui-education
 * @description:
 * @author: 闫克起2
 * @create: 2022-04-14 10:37
 **/
@RestController
@RequestMapping("/system/permission")
public class PermissionController {
    @Autowired
    private PermissionService permissionService;

    @GetMapping("leftMenu")
    public CommonResult leftMenu(){
         return permissionService.findMenuByUserid();
    }

}
